package com.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.util.StringUtils;

import java.util.Arrays;

@SpringBootApplication
public class Sb2Application implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(Sb2Application.class, args);
    }


    @Autowired
    private ApplicationContext appContext;



    @Override
    public void run(ApplicationArguments args) throws Exception {
//        String[] beans = appContext.getBeanDefinitionNames();
//        Arrays.sort(beans);
//        for (String bean : beans)
//        {
//            System.out.println(bean + " of Type :: " + appContext.getBean(bean).getClass());
//        }


        String stringUtils = StringUtils.quote("abc");
    }
}
